@import 'animation.scss';

* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,body{
    font-size: 14px;
	height: 100%;
	overflow: hidden;
	overflow-y: auto;
	font-family: emoji;
	color:#fff;
}
body,html,div,span,p,ul,li,button,a{
    user-select: none; 
    -webkit-user-select:none;
}

input[type=date]::-webkit-inner-spin-button { display: none; }
input[type=date]::-webkit-clear-button {display: none; }
input[type=date]::-webkit-datetime-edit-text {text-decoration: mintcream}
input::-webkit-input-placeholder {
    color: #999;
    font-size: 14px;
}

a{
	text-decoration: none;
	color:#fff;
}

// 修改火狐默认滚动条样式
* {
  scrollbar-color: #00fcff rgba(0,0,0,0.2); /* 滑块颜色  滚动条背景颜色 */
  scrollbar-width: thin; /* 滚动条宽度有三种：thin、auto、none */
}

/*修改谷歌默认滚动条样式*/
::-webkit-scrollbar {/*滚动条整体样式*/
    width: 2px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 2px;
}
::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 2px #00fcff;
    background: rgba(0,0,0,0.2);
}
::-webkit-scrollbar-track {/*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
    border-radius: 0;
    background: rgba(0,0,0,0.1);
}

button{
    outline: none;
    border:none;
}

@each $i in 10,11,12,13,14,15,16,18,20,22,24,28,30,32,36,60 { 
    .font-size-#{$i} {
        font-size: $i*1px;
    }
}

@each $i in 1,2,3,4,5,6,7,8,9,10 {
    .scale-#{$i} {
        transform: scale($i/10);
    }
}

// 动画延迟
@each $i in 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 {
    $num: $i * 0.06s;
    .delay-#{$i} {
        animation-delay:$num;
        -webkit-animation-delay:$num; 
    }
}

@each $i in 0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,30,32,33,35,36,37,38,39,40,42,44,46,48,50,52,54,56,59,60,64,70,72,80,92,96,100,105,114,120,140 {
    .mg-all-#{$i} {
        margin: px2vw($i);
    }
    .mgt-#{$i} {
        margin-top: $i*1px;
    }
    .mgr-#{$i} {
        margin-right: $i*1px;
    }
    .mgb-#{$i} {
        margin-bottom: $i*1px;
    }
    .mgl-#{$i} {
        margin-left: $i*1px;
    }
    .pd-all-#{$i} {
        padding: $i*1px;
    }
    .pdt-#{$i} {
        padding-top: $i*1px;
    }
    .pdr-#{$i} {
        padding-right: $i*1px;
    }
    .pdb-#{$i} {
        padding-bottom: $i*1px;
    }
    .pdl-#{$i} {
        padding-left: $i*1px;
    }
    .radius-#{$i} {
        border-radius: $i*1px;
    }
}

// flex布局
.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-item{
    flex:1;
    text-align: center;
}
.flex-sb{
	justify-content: space-between;
}

.flex-sa{
	justify-content: space-around;
}

// flex垂直排位
.vertical {
    flex-direction: column;
}

// flex水平排位
.row {
    flex-direction: row;
}
// 定义项目的放大比例
.grow{
    flex:1;
}
// 元素左对齐
.text-left{
    justify-content: flex-start;
}
.text-right{
    justify-content: flex-end;
}
// 元素顶对齐
.all-top{
    align-items: flex-start;
} 

.align-end{
    align-items: flex-end;
} 


// 一行文本溢出显示...
.on-line{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    height: 22px;
    line-height: 22px;
}
// 多行文本显示...
// .text-deal{
//     @include text(2);  
// }
// .text-deal3{
//     @include text(3);  
// }
// .text-deal1{
//     @include text(1);  
    
// }
.pointer{
	cursor: pointer;
}
.relative{
    position: relative;
}

.btn{
	display: inline-block;
	width: 62px;
	height: 26px;
	background:rgba(44,79,187,0.8);
	display: inline-flex;
	justify-content: center;
	align-items:center;
	border-radius:20px;
	color:#28B4FF;
	cursor: pointer;

	&:hover{
		background:#0668de;
	}
}
// 播放按钮
.circle-play-btn{
	position:absolute;
	width: 80px;
	height: 80px;
	background: url(../img/clere-2.png) center no-repeat;
	background-size: 100% 100%;
	cursor: pointer;
}

// 单选
.icon-radio{
	padding-left: 16px;
	background: url(../img/unchecked.png) left center no-repeat;
	background-size: 12px auto;
	cursor: pointer;
}

.icon-radio.checked{
	background: url(../img/checked.png) left center no-repeat;
	background-size: 12px auto;
	color:#fff;
}

// 图片放大按钮
.icon-enlarge{
	position:absolute;
	width: 22px;
	height: 22px;
	background: url(../img/zoom.png) center no-repeat;
	background-size: 100% 100%;
	cursor: pointer;
	bottom:8px;
	right: 8px;
	z-index: 2;
}

//遮罩层
.mask{
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom: 0;  
    background: #000;
    z-index: 9999;
    animation: changeBgColor 0.52s forwards;
}

.un-complete{
	color:#ff0f0f;
}

.complete{
	color:#45f545;
}


.main-page{
	background: rgba(0,17,89,1);
	width: 1920px;
	height: 100%;
	min-height: 700px;
	position:relative;
	overflow: hidden;
}

// 头部
.header{
	height: 77px;
	width: 100%;
	background: url(../img/heade.png) no-repeat;
	background-size: 100% 100%;
	position: relative;
	z-index: 99;

	.title{
		font-size: 30px;
	    font-weight: 600;
	    letter-spacing: 1px;
	    color: #00fcff;
	    font-family: cursive;
	} 

	.date-container{
		position:absolute;
		top:10px;
		right: 20px;
		color: #28B4FF;
		font-size: 16px;
		.time{
			font-size: 24px;
		}
	}

	.light {
	    width: 66px;
	    height: 7px;
	    background: url("../img/light.png") no-repeat;
	    background-size: 100% auto;
	   	offset-path: path('m0 36 710 8 28 27 446 0 26 -28 710 0');
	    offset-distance: 0%;
	    animation: move-light 5s ease-in infinite;
	    z-index: 99999;
	    position: absolute;
	    top: 0;
	    left: 0;
	}
}
// 页面中间区域
.page-body{
	width: 100%;
	height: calc(100% - 110px);
	overflow: hidden;
}

.sub-page-container{
	width: 100%;
	height: calc(100% - 80px);
	position:relative;
	display: flex;
}
.menu-container{
	min-width: 152px;
	height: 100%;
	background: url(../img/clere.png) left top no-repeat;
	background-size: 100% 100%;
	padding:18px 0;
	position:relative;

	.icon-unfold{
		position:absolute;
		bottom:7%;
		left: -3px;
		z-index: 4;
		background: url(../img/unfold.png) left top no-repeat;
		background-size: 100% auto;
		width: 30px;
		height: 30px;
		display: none;
		cursor: pointer;
	}

	.show-unfold{
		display: inline;	
	}
	.wrapper{
		height: 95%;
		background: #000;
		background: url(../img/icon-menu-line.png) 10px bottom no-repeat;
		background-size: auto 100%;
		position:relative;
		.to-up,
		.to-down{
			height: 30px;
		}

		.icon-menu-down{
			width: 30px;
			height: 30px;
			background: url(../img/icon-menu-down.png) center center no-repeat;
			background-size:14px auto;
			cursor: pointer;
			transition: transform 0.3s;

			&:hover{
				transform: scale(1.2);
			}
		}
		.icon-menu-up{
			width: 30px;
			height: 30px;
			background: url(../img/icon-menu-up.png) center center no-repeat;
			background-size:14px auto;
			cursor: pointer;
			transition: transform 0.3s;

			&:hover{
				transform: scale(1.2);
			}
		}
		.menu-box{
			height: calc(100% - 83px);
			overflow: hidden;
			li{
				min-height: 72px;
				font-size: 16px;
				color:#fff;
				cursor: pointer;
				font-weight: 300;
				line-height: 72px;
				padding-left:36px;

				.children{
					position:relative;
					background: url("../img/menu-up.png") 88% center  no-repeat;
					background-size:8px auto;
				}

				.sub-ul{
					display: none;

					li{
						padding-left:20px;
					}
				}
			}
			span{
				color:#fff!important;

				&:hover{
					color:#28B4FF!important;
				}
			}
			li.active{
				color:#28B4FF!important;
				position:relative;

				&:after{
					content: "";
					position:absolute;
					width: 2px;
					height: 72px;
					left: 10px;
					top:8px;
					background:url("../img/menu-item-active.png") left top no-repeat;
					background-size:2px auto;
				}
			}
			li.open{
				.sub-ul{
					display: block;
				}
				.children{
					position:relative;
					background: url("../img/menu-down.png") 88% center  no-repeat;

				}
			}
		}

		.put-away{
			position: absolute;
		    bottom: 0px;
		    left: 24%;
		    width: 41px;
		    height: 27px;
		    background: url(../img/put-away.png) center bottom no-repeat;
		    background-size: auto 100%;
		    cursor: pointer;
		}
	}
}
.menu-container.close-menu{
	width: 0;
	min-width: 0;
	.wrapper{
		display: none;
	}
}
.menu-container.close-menu + .right-content-wrapper{
	width: 98%;
	margin-left: 1.5%;
}



.right-content-wrapper{
	width: calc(100% - 170px);
	height: 100%;
	margin-left: 10px;
	position:relative;
	padding:0 10px;
	&:after{
		content: "";
		position:absolute;
		left: 0;
		top:-10px;
		width: 2px;
		height: 100%;
		background: url(../img/box-line.png) left bottom no-repeat;
		background-size: auto 100%;
	}

	&:before{
		content: "";
		position:absolute;
		left: -10px;
		top:0;
		width: calc(100% + 10px);
		height: 3px;
		background: url(../img/box-top.png) left bottom no-repeat;
		background-size: 100% auto;
	}

	.close-btn{
	 	position:absolute;
	 	width: 30px;
	 	height: 30px;
	 	top: 0;
	 	right: 0;
	 	background: url(../img/item4.png) left bottom no-repeat;
	 	z-index: 9;
	 	cursor: pointer;
	}
	.right-content-box{
		width: 100%;
		height: 100%;
		.cha{
			position: absolute;
			right: 0;
		}
		.tags{
			display: flex;
			height: 36px;
			align-items: center;

			li{
				margin-left: 6px;
				color:#5777B1;
			}

			li.to-back{
				background: url(../img/icon-back.png) 1px 76% no-repeat;
				background-size: 8px auto;
				padding-left:12px;
				color:#00FCFF;
				width: 50px;
				margin-right: 6px;
				position:relative;
				cursor: pointer;

				&:after{
					content: "";
					position:absolute;
					width: 1px;
					height: 16px;
					top: 2px;
					right: 0;
					background:#00FCFF;
				}
			}
			li:last-child{
				color:#00FCFF;
			}
		}
		
		.content-section{
			width: 100%;
			height: calc(100% - 36px);
		}
	}
}

// 页面底部
.footer{
	width: 100%;
	height: 79px;
	background: url(../img/down.png) left bottom no-repeat;
	background-size: 100% auto;
	align-items: flex-end;
	position:absolute;
	bottom:0;
	left: 0;
	z-index: 10;

	.footer-box{
		height: 50px;
		margin-top: 24px;
		position:relative;
	}
	.wrapper{
		width: 45%;
		height: 60px;
		padding: 0 40px;
		position:relative;
		display: flex;
		align-items: center;
		overflow: hidden;
	}
	.prev{
		position:absolute;
		width: 20px;
		height: 20px;
		top:17px;
		left: 10px;
		background: url(../img/left.png) center no-repeat;
		background-size: 14px auto;
		cursor: pointer;
	}
	.next{
		position:absolute;
		width: 20px;
		height: 20px;
		top:17px;
		right: 10px;
		background: url(../img/riglt.png) center no-repeat;
		background-size: 14px auto;
		cursor: pointer;
	}
	.footer-ul{
		width: 100%;
		position:relative;
		height: 40px;
		.item{
			width: 25%;
			height: 40px;
			line-height: 40px;
			font-size: 16px;
		    font-weight: 350;
		    color: #fff;
		    opacity: 0.9;
		    text-align: center;
		    float: left;
		    display: flex;
		    justify-content: center;
		    span{
		    	width: 120px;
		    	height: 40px;
		    	cursor: pointer;
		    	&:hover{
			    	background: url(../img/setting.png) center bottom no-repeat;
					background-size: 100% auto;
					color:#00FCFF;
			    }
		    }

		    span.active{
				background: url(../img/setting.png) center bottom no-repeat;
				background-size: 100% auto;
				color:#00FCFF;
			}
		}
	}

	.light-left{
		width: 66px;
	    height: 7px;
	    background: url("../img/light.png") no-repeat;
	    background-size: 100% auto;
	   	offset-path: path('m0 33 454 2 17 -39 490 0');
	    offset-distance: 0%;
	    animation: move-light 2.5s ease-in infinite;
	    z-index: 99999;
	    position: absolute;
	    top: 0;
	    left: 0;
	}

	.light-right{
		width: 66px;
	    height: 7px;
	    background: url("../img/light.png") no-repeat;
	    background-size: 100% auto;
	   	offset-path: path('m1920 33 -452 2 -18 -39 -489 0');
	    offset-distance: 0%;
	    animation: move-light 2.5s ease-in infinite;
	    z-index: 99999;
	    position: absolute;
	    top: 0;
	    left: 0;
	}


}

// 自定义下拉框样式
.j-select-box{
	width: 100%;
	min-width: 200px;
	height: 100%;
	min-height: 30px;
	position:relative;
	.checkbox{
		position:absolute;
		top:0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 99;
		opacity: 0;
		cursor: pointer;
	}

	.checkbox:checked + .j-select-row {
		.j-select-option-box{
			display: block;
		}
	}
	
	.j-select-row{
		width: 100%;
		height: 100%;

		.j-select{
			background:rgba(66, 86, 110, 1);
			cursor: pointer;
			width: 100%;
			height: 100%;
			padding: 0 10px;
			display: flex;
			align-items: center;
			cursor: pointer;
			&:after{
				content:"";
				position:absolute;
				width: 40px;
				height: 100%;
				background:url("../img/select-down.png") #0071F9 center no-repeat;
				background-size:16px auto;
				top:0;
				right: 0;
				z-index: 1;
			}

			input{
				padding:0;
				width: 100%;
				height: 80%;
				min-height: 30px;
				outline: none;
				border:none;
				background:none;
				color:#fff;
			}
		}
		.j-select-option-box{
			position:absolute;
			width: 100%;
			top:30px;
			left: 0;
			background: #153BA9;
			z-index: 99;
			display: none;
			overflow: hidden;
			overflow-y: auto;
			height: auto;
			max-height: 140px;

			li{
				padding: 0 10px;
				line-height: 36px;
				overflow: hidden;
				border-bottom: 1px solid #132C7F;
				cursor: pointer;
				color:#fff;

				&:hover{
					background: #13288e;
				}
			}

			li.active{
				background: #13288e;
			}
		}
	}
}


